-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed up if tables are involved and changed highlighting of parameters in steps #26
base: master
Are you sure you want to change the base?
Conversation
… method can take a long time. Therefore, the step-text is cut till the start of the table. This speeds up the matches(...) to an acceptable time.
…the annotator and not by an inspection.
I changed the parser to have its own token for "GivenStories:". Now, the file-path of a GivenStory is a token and has its own text-style. You can ctrl+click it now and you will jump to the specified file. There is also a completion for GivenStories. |
Thanks, I'll take a look later. On Tue, Feb 10, 2015, 12:59 Dinis de Brito e Cunha [email protected]
|
…ory step is contained in a java step. TokenMap doesn't resolve this, because it thinks, that the rest of the line is a parameter. This must be resolved in ParametrizedString.
… resolving parameters in story steps.
…to get rid of ParameterizedString.
I made a bug fix in JBehaveStepsIndex. If tables where passed to steps, the plugin was slowed down to a felt freeze of the IDE. My change cuts the steptext till the beginning of the table. E.g.
"Given A table:
| a | b|
| c | d |
"
is cut down to: "Given A table:". Then this cut down text is matched against the stepdefinitions.
We had this problem, because we have more than 800 stepdefinitions and many tables. The tables have more than 4 rows and 4 columns.
The second change is a move of the parameters highlighting from UndefinedStepInspection to the StoryAnnotator (including a bug fix).
The third change includes some resolving of deprecation issues and null-pointer checking.
All those changes were done for Intellij 14.0.2 and JDK 1.7.0_71